package org.example.laboratorymanagement.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.laboratorymanagement.pojo.Homework;

import java.util.List;

@Mapper
public interface HomeworkMapper {
    List<Homework> listHomeworks(@Param("username") String username, @Param("lesson") String lesson, @Param("susername") String susername,
                                 @Param("experiment") String experiment, @Param("local") String local, @Param("date") String date,
                                 @Param("time") String time);

//    @Insert("insert into homework(username, lesson, susername, experiment, description, local, date, time)" +
//            " values (#{username},#{lesson},#{susername},#{experiment},#{description},#{local},#{date},#{time})")
    void insert(Homework homework);

    void update(Homework homework);

    void delete(List<Integer> ids);
}
